package com.example.itcompanyinterview.tools;

import android.app.Activity;

public class CustomTitleSetter {

	private Activity activity;
	private TitleBarGenerator titleBar; 
	
	public CustomTitleSetter(Activity context) {
		this.activity = context;
	}
	
	public void setTitle(String titleText, int actionButton, int returnButton) {
		titleBar = new TitleBarGenerator(this.activity);
    	titleBar.setActionButtonView(actionButton);
    	titleBar.setReturnButtonView(returnButton);
    	titleBar.setTitleText(titleText);
    	titleBar.showTitleBar();
	}
	
	public void changeTitle(String titleText) {
		titleBar.changeTitleText(titleText);
	}
}
